int pos;
};
+#if 0 /* XEN */
static void copy_mem_info(struct info_str *info, char *data, int len)
{
if (info->pos + len > info->length)
copy_mem_info(info, buf, len);
return len;
}
+#endif /* 0 (XEN) */
/* SAE: For some reason off_t is not in any of the types.. */
#ifndef off_t
*/
static struct mcontroller mcontroller[MAX_CONTROLLERS];
+#if XEN_KILLED
/* The current driver version */
static u32 driver_ver = 0x118C;
-#if XEN_KILLED
/* major number used by the device for character interface */
static int major;
return ret;
}
-#endif /* 0 (XEN) */
static int megadev_ioctl (struct inode *inode, struct file *filep,
unsigned int cmd, unsigned long arg)
static void
megadev_ioctl_done(Scsi_Cmnd *sc)
{
-#if XEN_KILLED
up (&mimd_ioctl_sem);
-#endif
}
+#endif /* 0 (XEN) */
static mega_scb *
megadev_doioctl (mega_host_config * megacfg, Scsi_Cmnd * sc)
return 0; // no support for random deletions
}
+#if 0 /* XEN */
static int
mega_del_logdrv(mega_host_config *this_hba, int logdrv)
{
- return -ENOSYS;
-#if XEN_KILLED_DELLOGDRV
int rval;
IO_LOCK_T;
DECLARE_WAIT_QUEUE_HEAD(wq);
IO_UNLOCK;
return rval;
-#endif
}
-#if XEN_KILLED_DELLOGDRV
static int
mega_do_del_logdrv(mega_host_config *this_hba, int logdrv)
{
return rval;
}
-#endif
+#endif /* 0 (XEN) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
void *
static int megadev_open (struct inode *, struct file *);
static int megadev_ioctl_entry (struct inode *, struct file *,
unsigned int, unsigned long);
-#endif
static int megadev_ioctl (struct inode *, struct file *,
unsigned int, unsigned long);
+#endif
static mega_scb *megadev_doioctl (mega_host_config *, Scsi_Cmnd *);
#if 0
static int megadev_close (struct inode *, struct file *);
-#endif
static void megadev_ioctl_done (Scsi_Cmnd *);
+#endif
static int mega_init_scb (mega_host_config *);
static void enq_scb_freelist (mega_host_config *, mega_scb *,
int lock, int intr);
static void mega_get_boot_drv(mega_host_config *);
static int mega_get_ldrv_num(mega_host_config *, Scsi_Cmnd *, int);
static int mega_support_random_del(mega_host_config *);
-static int mega_del_logdrv(mega_host_config *, int);
+/*static int mega_del_logdrv(mega_host_config *, int);*/
/*static int mega_do_del_logdrv(mega_host_config *, int);*/
#endif